clarify the init value for the default sort column id
authorBenjamin Otte <otte@gnome.org>
Sun, 21 Jun 2009 20:35:15 +0000 (22:35 +0200)
committerBenjamin Otte <otte@gnome.org>
Sat, 27 Jun 2009 09:30:06 +0000 (11:30 +0200)
The patch is basically s/-2/GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID/

gtk/gtkliststore.c
gtk/gtktreestore.c

index e24cd76dd90c3a2ccb1b7a89d2ade9e5e376f5cd..3f2f7c4fc381f55194fe2e647128427ad5ce248b 100644 (file)
@@ -210,7 +210,7 @@ gtk_list_store_init (GtkListStore *list_store)
   list_store->seq = g_sequence_new (NULL);
   list_store->sort_list = NULL;
   list_store->stamp = g_random_int ();
-  list_store->sort_column_id = -2;
+  list_store->sort_column_id = GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID;
   list_store->columns_dirty = FALSE;
   list_store->length = 0;
 }
index 9a522df632cf0df7875336c10b5ea25009bd36fa..1fb178d375ae2b60d60a88cb1a7e29d7522744b8 100644 (file)
@@ -235,7 +235,7 @@ gtk_tree_store_init (GtkTreeStore *tree_store)
   while (tree_store->stamp == 0);
 
   tree_store->sort_list = NULL;
-  tree_store->sort_column_id = -2;
+  tree_store->sort_column_id = GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID;
   tree_store->columns_dirty = FALSE;
 }